package com.atguigu.gmall.common.config.exception;

import com.atguigu.gmall.common.config.exception.component.AppGlobalExceptionHandler;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author lfy
 * @Description
 * @create 2023-07-25 14:22
 */
@Configuration
public class AppExceptionHandlerAutoConfiguration {

    @Bean
    public AppGlobalExceptionHandler globalExceptionHandler(){
        return new AppGlobalExceptionHandler();
    }
}
